package com.yihaodian.cluster;

import com.yihaodian.index.meta.shard.ShardId;

public class ShardMgtChange {

	ShardId shardId;

	boolean allNode;

	boolean enable;

	Node node;

	private ShardMgtChange() {

	}

	public ShardMgtChange(ShardId shardId, boolean enable, boolean allNode,
			Node node) {
		this.shardId = shardId;
		this.enable = enable;
		this.allNode = allNode;
		this.node = node;
	}

	public ShardId getShardId() {
		return shardId;
	}

	public void setShardId(ShardId shardId) {
		this.shardId = shardId;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public boolean isAllNode() {
		return allNode;
	}

	public void setAllNode(boolean allNode) {
		this.allNode = allNode;
	}

	public Node getNode() {
		return node;
	}

	public void setNode(Node node) {
		this.node = node;
	}
}
